package com.hkts.beltweigher.salve.service.serviceimpl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hkts.beltweigher.master.entity.YbRunAccumulate;
import com.hkts.beltweigher.salve.entity.WestBeltscalesCumulativedata;
import com.hkts.beltweigher.salve.mapper.WestBeltscalesCumulativedataMapper;
import com.hkts.beltweigher.salve.service.IWestBeltscalesCumulativedataService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hkts.beltweigher.utils.DateUtil;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author hml
 * @since 2024-07-04
 */
@Service
@Transactional
public class WestBeltscalesCumulativedataServiceImpl extends ServiceImpl<WestBeltscalesCumulativedataMapper, WestBeltscalesCumulativedata> implements IWestBeltscalesCumulativedataService {


    @Autowired
    private WestBeltscalesCumulativedataMapper westBeltscalesCumulativedataMapper;

    @Override
    public IPage<WestBeltscalesCumulativedata> selectPage(Page<WestBeltscalesCumulativedata> page, WestBeltscalesCumulativedata westBeltscalesCumulativedata) {
        QueryWrapper<WestBeltscalesCumulativedata> query = Wrappers.query();
        return westBeltscalesCumulativedataMapper.selectPage(page, query);
    }


    @Override
    public List<WestBeltscalesCumulativedata> selectList(WestBeltscalesCumulativedata westBeltscalesCumulativedata) {
        QueryWrapper<WestBeltscalesCumulativedata> query = Wrappers.query();
        return westBeltscalesCumulativedataMapper.selectList(query);
    }

    @Override
    public List<WestBeltscalesCumulativedata> selectWestBeltsCalesCumulativeDataListGt(Integer id) {
        QueryWrapper<WestBeltscalesCumulativedata> query = Wrappers.query();
        query.lambda().gt(WestBeltscalesCumulativedata::getId,id);
        return westBeltscalesCumulativedataMapper.selectList(query);
    }

    @Override
    public List<WestBeltscalesCumulativedata> selectYbRunLeiJiListAll() {
        QueryWrapper<WestBeltscalesCumulativedata> query = Wrappers.query();
        return westBeltscalesCumulativedataMapper.selectList(query);
    }


}
